FROM php:7.2-fpm
WORKDIR /app
COPY ./ /app
RUN mkdir /app/runtime
RUN chmod 777 /app/runtime
RUN chmod 777 /app/config
RUN chmod 777 -R /app/public/
RUN echo 'upload_max_filesize=10M\n\
post_max_size=10M\n\
max_file_uploads=20\n\
memory_limit=1024M\n'\
> /usr/local/etc/php/conf.d/php_ext.ini
RUN docker-php-ext-install pdo pdo_mysql


